package com.example.ws.handler.chess;

import java.util.List;

public class SearchTree {
    public SearchTree[] children;
    public Pos val;
    public int score = 0;

    public SearchTree(Pos val) {
        this.val = val;
    }

    public SearchTree() {}

    public static SearchTree[] batchChildren(List<Pos> poses) {
        SearchTree[] children = new SearchTree[poses.size()];
        for (int i = 0; i < poses.size(); i++) {
            children[i] = new SearchTree(poses.get(i));
        }
        return children;
    }
}
